<!--TODO 地址选择三级联动-->
<template>
  <div class="mainDiv" ref='registerDiv'>
    <top></top>
    <search></search>
    <navBar></navBar>


    <img src="../assets/image/u0.png" class="linePic" alt="">
    <div class="registerWrapper">
      <div class="registerTitleBox">|| 用户注册</div>
    </div>
    <div class="formOneBox">
      <div class="trBox">
        <div class="trTitle"><span>*</span>企业名称：</div>
        <input class="trContent1" placeholder="请输入" type="text">
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>统一社会信用代码：</div>
        <input class="trContent1" placeholder="请输入" type="text">
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>法人：</div>
        <input class="trContent2" placeholder="请输入" type="text">
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>法人身份证号：</div>
        <input class="trContent2" placeholder="请输入" type="text">
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>法人移动电话：</div>
        <input class="trContent2" placeholder="请输入" type="text">
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>短信验证码：</div>
        <input class="trContent3" placeholder="请输入" type="text">
        <div class="getCodeTxt">获取短信验证码</div>
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>成立时间：</div>
        <el-date-picker
          class="content2"
          v-model="dateValue"
          type="date"
          placeholder="选择日期">
        </el-date-picker>
      </div>

      <div class="trBox">
        <div class="trTitle"><span>*</span>单位性质：</div>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
      </div>
      <div class="trBox">
        <div class="trTitle">注册资本：</div>
        <input class="trContent2" placeholder="请输入" type="text">
        <div style="font-size: 16px;color: #333;margin-left: 10px">万元</div>
      </div>
      <div class="trBox">
        <div class="trTitle">单位地址：</div>
        <input class="trContent2" placeholder="请输入" type="text">
      </div>
      <div class="trBox">
        <div class="trTitle">详细地址：</div>
        <input class="trContent1" placeholder="请输入" type="text">
      </div>
    </div>

    <div class="formTwoBox">
      <div class="trBox">
        <div class="trTitle"><span>*</span>登录账号：</div>
        <input class="trContent1" placeholder="请输入字母、数字、汉字，不包含特殊符号" type="text">
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>登录密码：</div>
        <input class="trContent1" placeholder="请输入包含字母、数字、汉字、特殊符号中的至少两种" type="password">
      </div>
      <div class="trBox">
        <div class="trTitle"><span>*</span>确认密码：</div>
        <input class="trContent1" placeholder="请再次输入密码" type="password">
      </div>
    </div>
    <div class="formSubmitBox">
      <el-checkbox v-model="checked">我已阅读并同意 <span style="color: #f00">《用户注册协议》</span></el-checkbox>
      <div class="subBtnDiv">
        <div class="goReg">申请注册</div>
        <div class="goBack">取消</div>
      </div>
      <div class="goLoginDiv">已有账号 <span @click="toLogin">直接登录</span></div>
    </div>



    <footter></footter>
  </div>
</template>

<script>
  import top from '@/components/children/top';
  import search from '@/components/children/search';
  import navBar from '@/components/children/navBar';
  import footter from '@/components/children/footter';


  export default {
    name: 'register',
    components: {top, search, navBar,footter},
    data() {
      return {
        checked: false,
        dateValue: '',
        options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {
          value: '选项5',
          label: '北京烤鸭'
        }],
        value: '',
      }
    },
    created() {

    },
    mounted() {

    },
    methods: {

      //登录
      toLogin() {
        this.$router.push("/login");
      },
    }
  }
</script>

<style scoped>
  .mainDiv {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
  }
  .linePic{
    width: 100%;
    height: 2px;
    margin: 10px;
  }
  .registerWrapper{
    width: 90%;
    padding-top: 20px;
  }
  .registerTitleBox{
    width: 100%;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    font-weight: bolder;
    color: #f00;
    border-bottom: 1px solid rgb(240,240,240);
  }
  .formOneBox{
    width: 90%;
    border-bottom: 1px solid rgb(240,240,240);
    padding: 10px 0;
  }
  .trBox{
    width: 100%;
    height: 48px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
  .trTitle{
    width: 240px;
    height: 48px;
    text-align: right;
    color: #333;
    font-size: 16px;
    line-height: 48px;
    margin-right: 10px;
  }
  .trTitle span{
    color: #f00;
    margin-right: 5px;
  }
  .trContent1{
    width: 600px;
    height: 36px;
    border-radius: 5px;
    padding-left: 20px;
    border: 1px solid rgb(240,240,240);
    font-size: 16px;
    color: #333;
  }
  .trContent2{
    width: 400px;
    height: 36px;
    border-radius: 5px;
    border: 1px solid rgb(240,240,240);
    padding-left: 20px;
    font-size: 16px;
    color: #333;
  }
  .trContent3{
    width: 240px;
    height: 36px;
    border-radius: 5px;
    padding-left: 20px;
    border: 1px solid rgb(240,240,240);
    font-size: 16px;
    color: #333;
  }
  .getCodeTxt{
    width: 160px;
    height: 36px;
    border-radius: 5px;
    background: #f00;
    text-align: center;
    line-height: 36px;
    color: #fff;
    cursor: pointer;
  }
  .el-date-editor.el-input, .el-date-editor.el-input__inner{
    width: 400px;
    height: 36px;
    border-radius: 5px;
  }
  .el-select{
    width: 400px;
  }

  .formTwoBox{
    width: 90%;
    padding: 10px 0;
  }
  .formSubmitBox{
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .subBtnDiv{
    display: flex;
    flex-direction: row;
    margin: 20px 0;
  }
  .goReg{
    width: 120px;
    height: 48px;
    border-radius: 5px;
    text-align: center;
    line-height: 48px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    background: #f00;
    margin-right: 20px;
  }
  .goBack{
    width: 120px;
    height: 48px;
    border-radius: 5px;
    text-align: center;
    line-height: 48px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    background: rgb(102,102,102);
  }
  .goLoginDiv{
    font-size: 16px;
    color: #333;
  }
  .goLoginDiv span{
    color: #f00;
    cursor: pointer;
  }


</style>
